package com.itheima.controller;

/**
 * 封装响应结果状态值
 */
public class Code {

    //响应成功状态码
    public static final Integer SAVE_OK = 20011;
    public static final Integer DELETE_OK = 20021;
    public static final Integer UPDATE_OK = 20031;
    public static final Integer GET_OK = 20041;

    //响应失败状态码
    public static final Integer SAVE_ERR = 20011;
    public static final Integer DELETE_ERR = 20021;
    public static final Integer UPDATE_ERR = 20031;
    public static final Integer GET_ERR = 20041;

    //异常状态码
    public static final Integer SYSTEM_ERR = 50001;
    public static final Integer SYSTEM_TIMEOUT_ERR = 50002;

    public static final Integer BUSINESS_ERR = 60002;

}
